#include "arm_math.h"
#include "coef.h"


const q15_t fir_coefs[NUMTAPS]={3277,3277,3277,3277,3277,3277,3277,3277,3277,3277,
};


const q15_t coef_q15[98]={-3346,-6224,-9697,-12936,-16920,-20357,-22705,-25301,-27291,-29189,
-27827,-26920,-25001,-23132,-20190,-18492,-17783,-16639,-16174,-14871,
-13628,-11917,-10446,-8731,-7502,-6340,-5441,-5151,-4475,-4342,
-4000,-4071,-4295,-3900,-2454,-234,2701,6316,9346,12216,
14414,15401,15285,13877,11377,9229,6648,4804,3306,2451,
2082,2763,4166,5516,6320,6501,6728,6403,5883,5333,
6515,8275,10031,11890,14189,17285,19272,19242,19158,18224,
15625,13057,11268,9628,8184,6156,5943,8021,10310,13040,
16011,17826,19139,20029,20433,20198,18052,15731,13999,11727,
9499,8258,7410,6984,7233,7581,8690,9118,};

const q15_t intercept_q15 = -18108;
const int coef_shift=1;
const int intercept_shift=2;
 
const q15_t window[400]={0,2,8,18,32,51,73,99,129,163,
202,244,290,340,395,453,515,581,651,724,
802,883,969,1058,1151,1247,1348,1452,1559,1671,
1786,1904,2027,2152,2282,2414,2551,2690,2833,2979,
3129,3282,3438,3597,3760,3926,4094,4266,4441,4618,
4799,4982,5168,5357,5549,5743,5940,6140,6342,6547,
6754,6963,7175,7389,7605,7823,8044,8266,8491,8717,
8946,9176,9408,9642,9877,10114,10353,10593,10834,11077,
11321,11566,11813,12061,12309,12559,12810,13062,13314,13567,
13821,14075,14331,14586,14842,15099,15355,15612,15869,16127,
16384,16641,16899,17156,17413,17669,17926,18182,18437,18693,
18947,19201,19454,19706,19958,20209,20459,20707,20955,21202,
21447,21691,21934,22175,22415,22654,22891,23126,23360,23592,
23822,24051,24277,24502,24724,24945,25163,25379,25593,25805,
26014,26221,26426,26628,26828,27025,27219,27411,27600,27786,
27969,28150,28327,28502,28674,28842,29008,29171,29330,29486,
29639,29789,29935,30078,30217,30354,30486,30616,30741,30864,
30982,31097,31209,31316,31420,31521,31617,31710,31799,31885,
31966,32044,32117,32187,32253,32315,32373,32428,32478,32524,
32566,32605,32639,32669,32695,32717,32736,32750,32760,32766,
32767,32766,32760,32750,32736,32717,32695,32669,32639,32605,
32566,32524,32478,32428,32373,32315,32253,32187,32117,32044,
31966,31885,31799,31710,31617,31521,31420,31316,31209,31097,
30982,30864,30741,30616,30486,30354,30217,30078,29935,29789,
29639,29486,29330,29171,29008,28842,28674,28502,28327,28150,
27969,27786,27600,27411,27219,27025,26828,26628,26426,26221,
26014,25805,25593,25379,25163,24945,24724,24502,24277,24051,
23822,23592,23360,23126,22891,22654,22415,22175,21934,21691,
21447,21202,20955,20707,20459,20209,19958,19706,19454,19201,
18947,18693,18437,18182,17926,17669,17413,17156,16899,16641,
16384,16127,15869,15612,15355,15099,14842,14586,14331,14075,
13821,13567,13314,13062,12810,12559,12309,12061,11813,11566,
11321,11077,10834,10593,10353,10114,9877,9642,9408,9176,
8946,8717,8491,8266,8044,7823,7605,7389,7175,6963,
6754,6547,6342,6140,5940,5743,5549,5357,5168,4982,
4799,4618,4441,4266,4094,3926,3760,3597,3438,3282,
3129,2979,2833,2690,2551,2414,2282,2152,2027,1904,
1786,1671,1559,1452,1348,1247,1151,1058,969,883,
802,724,651,581,515,453,395,340,290,244,
202,163,129,99,73,51,32,18,8,2,
};

